home *** CD-ROM | disk | FTP | other *** search
/ Into His Marvelous Light / Into His Marvelous LIGHT.iso / lesson2.dxr / 00054_Script_Go to Frame X Button < prev    next >
Text File  |  1998-01-03  |  952b  |  48 lines

  1. -- DESCRIPTION --
  2.  
  3. on getBehaviorDescription me
  4.   return "¼
  5. GO TO FRAME X"&RETURN&RETURN&"¼
  6. Moves the playback head to the chosen frame ¼
  7. when the user clicks on the sprite"&RETURN&RETURN&"¼
  8. PERMITTED MEMBER TYPES:"&RETURN&"Graphic members"&RETURN&RETURN&"¼
  9. PARAMETERS:"&RETURN&"¼
  10. * Go to which frame on mouseUp?"
  11. end getBehaviorDescription
  12.  
  13. on getBehaviorTooltip me
  14.   return "¼
  15. Use with graphic members."&RETURN&RETURN&"¼
  16. Moves the playback head to"&RETURN&"¼
  17. the chosen frame on mouseUp."
  18. end getBehaviorTooltip
  19.  
  20.  
  21.  
  22. -- HISTORY --
  23.  
  24. -- 3 November 1998, written for the D7 Behaviors Palette by James Newton
  25.  
  26.  
  27.  
  28. property myTargetFrame
  29.  
  30.  
  31. on mouseUp me
  32.   go myTargetFrame
  33.   go to the frame
  34. end mouseUp
  35.  
  36.  
  37. on getPropertyDescriptionList me
  38.   return ¼
  39. [ ¼
  40.  #myTargetFrame: ¼
  41.  [ ¼
  42.   #comment: "Go to which frame on mouseUp?:", ¼
  43.   #format:  #integer, ¼
  44.   #default:  the frame ¼
  45.  ] ¼
  46. ]
  47. end getPropertyDescriptionList
  48.